#ifndef  __ADC_H__
#define  __ADC_H__

#define On_interrupt_adc       ADCSRA|=1<<ADIE
#define Off_interrupt_adc      ADCSRA&=~(1<<ADIE)



#define DC_OUT1 			EXT_ADC15
#define DC_OUT2 			EXT_ADC11
#define DC_OUT3 			EXT_ADC7
#define DC_OUT4 			EXT_ADC3

#define RMS_OUT1 			EXT_ADC14
#define RMS_OUT2			EXT_ADC10
#define RMS_OUT3			EXT_ADC6 
#define RMS_OUT4			EXT_ADC2 

#define HIOUT1				EXT_ADC13
#define HIOUT2				EXT_ADC8
#define HIOUT3				EXT_ADC4
#define HIOUT4				EXT_ADC1

#define LOWOUT1				EXT_ADC12
#define LOWOUT2				EXT_ADC9
#define LOWOUT3				EXT_ADC5
#define LOWOUT4				EXT_ADC0


#define LASP1				7	
#define LASP2				6
#define LASC1				5
#define LASC2				4



unsigned short adc_signal;

void Init_adc(void);
int  read_adc(unsigned char adc_mux);
int get_adc(unsigned char ext_int,unsigned char num); // ext/int - 1/0 
void read_adcs (void);
#endif
